<?php $this->headScript()->appendFile($this->JS_PATH . "language.js"); ?>
<div id="language-listing"></div>
<div class="clearfix"></div>
<div class="content">
    <div class="page-title"> <i class="icon-custom-right"></i>
        <h3><span class="semi-bold">List Language</span></h3>
    </div>
<?php echo $this->flashmessages(); ?>
    <div class="row">
        <div class="col-md-12">
            <div class="grid simple transparent" style="background-color:white;">
                
                <div class="grid-body">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="grid simple ">

                                <div class="grid-body no-border dataTables_wrapper form-inline">
                                    <h3>Language <span class="semi-bold">Listing</span></h3>
                                     
                                    <table class="table no-more-tables">
                                        <thead>
                                            
                                            
                                            <tr>
                                                <td colspan="2" align="right">
                                                <a class="btn btn-success btn-cons"
                                        href="<?php echo $this->url(array('module' => 'default', 'controller' => 'language', 'action' => 'form'), null, TRUE); ?>"
                                        >+ Add Language</a>
                                                </td>
                                            </tr>
                                            <tr>
                                        <th style="width:14%">
                                            <a href="<?php echo $this->url(array('controller' => 'language', 'action' => 'list', 'field' => 'lang_name', 'sort' => 'asc'), 'default', false); ?>">
                                                <img src="<?php echo $this->IMAGE_PATH; ?>datatables/sort_asc.png"  alt="Ascending" title="Ascending" class="sort_asc" />
                                            </a>
                                            Name
                                            <a href="<?php echo $this->url(array('controller' => 'language', 'action' => 'list', 'field' => 'lang_name', 'sort' => 'desc'), 'default', false); ?>">
                                                <img src="<?php echo $this->IMAGE_PATH; ?>datatables/sort_desc.png"  alt="Descending" title="Descending" class="sort_desc"  />
                                            </a>
                                        </th>
                                    
                                        
                                        <th style="width:20%">Action</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                            
                                            <?php if (count($this->languageData) > 0): ?>
                                            <?php foreach ($this->languageData as $key => $value) : ?>
                                            <tr>
                                            <td class="v-align-middle">
                                                <a href="<?php echo $this->url(array('controller' => 'Language', 'action' => 'form', 'lang_id' => $value["lang_id"]), null, true); ?>">
                                                       <?php echo $value['lang_name']; ?>
                                                </a>
                                            </td>
                                               <td>
                                                    <a class="label label-success clickable" href="<?php echo $this->url(array('controller' => 'Language', 'action' => 'form', 'lang_id' => $value["lang_id"]), null, true); ?>">
                                                        Edit
                                                    </a>&nbsp;
                                                   
                                                    <a class="label label-important clickable" href="<?php echo $this->url(array('controller' => 'Language', 'action' => 'delete', 'lang_id' => $value["lang_id"]), null, true); ?>">
                                                    Delete
                                                    </a>
                                                </td>
                                                </tr>
                                                
                                                <?php endforeach; ?>
                                                 <?php else: ?>
                                        <td colspan="2" style="text-align: center">No Record Found</td>
                                            <?php endif; ?>
                                            </tbody>
                                    </table>
                                    
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="dataTables_paginate paging_bootstrap pagination">
                                            <?php echo $this->paginator->displayPages(); ?>
                                        </div>
                                    </div>
                                </div>
                                
                                    
                                </div>
                                
                                
                                
                                <div class="paging">
                    <div>
                    
                    </div>
                </div>
                                
                                
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<!-- END PAGE -->